<html>
    <head>
        <?php
            use_javascript('data/main.js');
        ?>
    </head>
    <body>
        <a id="lnkDownloadLocation" title="Download Location Template" class="clickable" href="<?php echo url_for('data/downloadTemplate?templateId='.Types::$EXCEL_DATA_TEMPLATES[Types::$EXCEL_DATA_TEMPLATES_LOCATION]); ?>">
            Download Location Template
        </a>

        <br />
        <a id="lnkDownloadDepth" title="Download Depth Template" class="clickable" href="<?php echo url_for('data/downloadTemplate?templateId='.Types::$EXCEL_DATA_TEMPLATES[Types::$EXCEL_DATA_TEMPLATES_DEPTH]); ?>">
            Download Depth Template
        </a>

        <br />
        <a id="lnkDownloadSpecies" title="Download Species Template" class="clickable" href="<?php echo url_for('data/downloadTemplate?templateId='.Types::$EXCEL_DATA_TEMPLATES[Types::$EXCEL_DATA_TEMPLATES_SPECIES]); ?>">
            Download Species Template
        </a>

        <br />
        <a id="lnkDownloadAttribute" title="Download Attribute Template" class="clickable" href="<?php echo url_for('data/downloadTemplate?templateId='.Types::$EXCEL_DATA_TEMPLATES[Types::$EXCEL_DATA_TEMPLATES_ATTRIBUTE]); ?>">
            Download Attribute Template
        </a>

        <br />
        <hr/>

        <div id="errorInvalidFile">
            <?php if($sf_user->hasFlash('message')): ?>
                <?php foreach($sf_user->getFlash('message') as $err): ?>
                <label class="redFont">
                    <?php echo $err; ?>
                </label>
                <br/>
                <?php endforeach; ?>
            <?php endif; ?>
        </div>
        <br/>
        <div id="dvUploadedFiles" class="tdPublicationDetailContributor">
            <?php foreach ($uploadedFiles as $uploadedFile):?>
                <label><?php echo $uploadedFile[0].' - '.$uploadedFile[1]; ?></label>
                <br/>
            <?php endforeach; ?>
            
        </div>
        <br/>
        
        <label id="lblUploadFile">Upload</label>
        <form method="post" action="<?php echo url_for('data/uploadData?id='.$researchId); ?>" enctype="multipart/form-data">
            <input type="file" id="fileUpload" name="fileUpload" />
            <input value="Attach ►" type="submit">
        </form>

        <br/>
        <form method="post" action="<?php echo url_for('data/uploadResearchData?id='.$researchId); ?>">
            <input value="Upload" type="submit">
        </form>
    </body>
</html>